/*package org.mondup.thaha.aop;


import org.apache.log4j.Logger;
import org.springframework.core.Ordered;

import com.csgsystems.im.ServiceException;

public class ServiceThrowsAdvisor implements Ordered {

	private static Logger log = Logger.getLogger(ServiceThrowsAdvisor.class); 
	
	private int order = 0;
	
	public void afterThrowing(Exception exception) {
		log.debug("Caught " + exception.getClass().toString() + ", message: " + exception.getMessage());
		
		if (! (exception instanceof ServiceException)) {
			throw new ServiceException("Service processing failed, see stacktrace for reason.", exception);
			
		}

	}

	
	public void setOrder(int order) {
		this.order = order;
		
	}
	
	@Override
	public int getOrder() {
		return order;
		
	}
}
*/